<template>
    <view>
		<web-view :src="src"></web-view>
    </view>
</template>

<script>
	import { file, notice } from '@/utils/common.js'
	
    export default {
        data() {
			return {
				src: ""
			}
        },
		onLoad(params) {
			if(params.filePath) {
				this.src = params.filePath
			} else if(params.fileId) {
				this.src = "/hybrid/html/video.html?fileUrl="+encodeURIComponent(file.downFileUrl(params.fileId))
			} else {
				notice.toast('视频参数错误')
			}
		}
    }
</script>

<style>
    .video {
        width: 750rpx;
    }

    .btn {
        margin: 10px 20px;
		background-color: #1E91E6;
		color: #fff;
    }
</style>
